package model

//ArticleInfo ..文章的结构体
type ArticleInfo struct {
	ID           int64  `db:"ID"`
	CategoryID   int64  `db:"category_id"`
	Summary      string `db:"summary"` //文章摘要
	Title        string `db:"title"`
	ViewCount    uint32 `db:"view_count"`
	CommentCount int    `db:"comment_count"`
	UserName     string `db:"username"`
	Status       int    `db:"status"`
	CreateTime   string `db:"create_time"`
	UpdateTime   string `db:"update_time"`
	CategoryName string
}

//ArticleDetail ..文章详情  只要在查看文章具体内容的时候才进行加载
type ArticleDetail struct {
	ArticleInfo
	Content string `db:"content"`
	//Category        //所属分类
}

//ArticleRecord ..用于文章的上下页
type ArticleRecord struct {
	ArticleID int64
	Title     string
}
